GtkGrid: Set orientable style classes initially
authorMatthias Clasen <mclasen@redhat.com>
Fri, 18 Jul 2014 23:38:37 +0000 (19:38 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 18 Jul 2014 23:38:37 +0000 (19:38 -0400)
This was an omission, horizontal/vertical would only be set
when the orientation is changed.

gtk/gtkgrid.c

index 204c9ae44deb7e17d44a2c29fdd2e27337014139..d735e63224c6044ff439f16397f550a515dcb57c 100644 (file)
@@ -397,6 +397,8 @@ gtk_grid_init (GtkGrid *grid)
 
   priv->linedata[0].homogeneous = FALSE;
   priv->linedata[1].homogeneous = FALSE;
+
+  _gtk_orientable_set_style_classes (GTK_ORIENTABLE (grid));
 }
 
 static void